#ifndef QTPUSHER_H
#define QTPUSHER_H

#include <QGraphicsItem>
#include "Pusher.h"
#include "QtCellSprite.h"
#include "Direction.h"

class QtPusher: public QtCellSprite, public Pusher
{
public:
	QtPusher(const Direction& direction, QtSprite *parent = 0);
	~QtPusher();

	void SetDirection(const Direction& newDirection);
	void Push();

protected:	
	void BackgroundUpdated();
	
private:
	unsigned int duration;
	Direction pushDirection;
	QPointF pushPoint;
};

#endif //QTPUSHER_H